#include <stdio.h>   
const int n=1000; 

 void populateData (int* dataarray, int sz); 
 double mean (double[] , int);
 double stanDeviation(double[] , int);
 
 int main (int argc, char** argv){  int intarray[n]; 
 populateData(intarray, n); 
 return 0; 
 } 
 
 void populateData (int* dataarray, int sz){ 

 for(int i=0; i<sz; i++){  
 dataarray[i]=i; 
}

double mean(double n[], int sz){
double sum=0;

for ( int i = 0; i <sz; i++ ){
sum += n[i];
mean=sum/n;
return mean;
 }
 
 double stanDeviation (double n[i], int sz){
 double stanDeviation;
 
for ( int i = 0; i <sz; i++ ){
sum += pow((n[i]-mean),2);
}
stanDeviation= sqrt(sum/(sz-1));
 return stanDeviation;
          } 
    } 
 }  
